package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
/**
 * 微信支付退款
 *@Author: wangchaofeng
 *@Date: 2019/1/10 17:34
 *@Description
 */
@TableName("wx_order_pay")
public class WxOrderPay implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     *id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 订单id
     */
    @TableId(value = "orderid")
    private String orderid;
    /**
     * 付款人id
     */
    @TableId(value = "openid")
    private String openid;
    /**
     * 支付成功(1)支付失败(2)
     */
    @TableId(value = "failure")
    private String failure;
    /**
     * 订单的金额
     */
    @TableId(value = "amount")
    private String amount;
    /**
     * 商户id
     */
    @TableId(value = "appid")
    private String appid;
    /**
     * 退款人id
     */
    @TableId(value = "peopleid")
    private String peopleid;
    /**
     * 支付金额
     */
    @TableId(value = "aliapy")
    private String aliapy;
    /**
     * 退款金额
     */
    @TableId(value = "refund")
    private String refund;
    /**
     *  退款成功(1)或退款失败(2)
     */
    @TableId(value = "refundyesandour")
    private String refundyesandour;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public String getOrderid() {
        return orderid;
    }

    public String getOpenid() {
        return openid;
    }

    public String getFailure() {
        return failure;
    }

    public String getAmount() {
        return amount;
    }

    public String getAppid() {
        return appid;
    }

    public String getPeopleid() {
        return peopleid;
    }

    public String getAliapy() {
        return aliapy;
    }

    public String getRefund() {
        return refund;
    }

    public String getRefundyesandour() {
        return refundyesandour;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setOrderid(String order_id) {
        this.orderid = order_id;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setFailure(String failure) {
        this.failure = failure;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setPeopleid(String peopleid) {
        this.peopleid = peopleid;
    }

    public void setAliapy(String aliapy) {
        this.aliapy = aliapy;
    }

    public void setRefund(String refund) {
        this.refund = refund;
    }

    public void setRefundyesandour(String refundyesandour) {
        this.refundyesandour = refundyesandour;
    }

    @Override
    public String toString() {
        return "WxOrderPay{" +
                "id=" + id +
                ", order_id='" + orderid + '\'' +
                ", openid='" + openid + '\'' +
                ", failure='" + failure + '\'' +
                ", amount='" + amount + '\'' +
                ", appid='" + appid + '\'' +
                ", peopleid='" + peopleid + '\'' +
                ", aliapy='" + aliapy + '\'' +
                ", refund='" + refund + '\'' +
                ", refundyesandour='" + refundyesandour + '\'' +
                '}';
    }
}